<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
 	<meta charset="utf-8">
    <meta http-equiv="Content-Type" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <meta name="description" content="">
    <meta name="author" content="">

    <title>用户注册</title>
    
     <!-- 新 Bootstrap 核心 CSS 文件 -->
	<link href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
	
	<!-- jQuery文件。务必在bootstrap.min.js 之前引入 -->
	<script src="https://cdn.bootcss.com/jquery/2.1.1/jquery.min.js"></script>
	<link rel="stylesheet" href="/market/css/LR.css">
	 

</head>
<body >


	<%@include file="navbar.jsp"%>

    <div class="container" style="max-width: 330px;margin:0px auto;padding-top: 100px;">
    
	    <div class="page-header">
		    <h1>用户注册
		        <a href="login" ><small>登录</small></a>
		    </h1>
		</div>



	   
     	<form class="form-signin" method="post" action="reg" accept-charset="UTF-8">
	        <input type="text" id="reg_username" name="username" class="form-control reg-margin10"  placeholder="输入手机号" required autofocus>
			<em class="redfont"></em>
			<input type="text" id="nickname" name="nickname" class="form-control reg-margin10"  placeholder="输入3~10个字符"   required>
			<em class="redfont"></em>
			<input type="password" id="reg_pass1" name="password1" class="form-control reg-margin10"  placeholder="输入6~10位密码" required >
			<em class="redfont"></em>
	        <input type="password" id="reg_pass2" name="password2" class="form-control reg-margin10"   placeholder="重复密码" required >
			<em class="redfont"></em>

	        <button class="btn  btn-primary btn-lg btn-block reg-margin10" type="submit" id="reg_submit_btn">注册</button>
      
      	</form>


		<%--返回登录信息--%>
		<%
			String s = (String)request.getAttribute("reg_msg");
			if (s!=null){%>
			<script>alert("<%=s%>")</script>

		<%}%>


    </div>

	<!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
	<script src="https://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
	<script src="/market/js/RegChecked.js"></script>
	<script src="/market/js/common.js"></script>
   
</body>
</html>